﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Universum.Infrastructure.Persistence.Queries;
using Universum.Model.Domain.Blogs;
using Universum.Model.Domain;

namespace Universum.Infrastructure.Persistence.Queries.Blog
{
	public class BlogArticleBySlug : IDomainQuery<BlogArticle>
	{
		public BlogArticleBySlug(string slug)
		{
			Expression = it => slug == it.Slug;
		}
		#region IDomainQuery<BlogArticle> Members

		public System.Linq.Expressions.Expression<Func<BlogArticle, bool>> Expression
		{
			get;
			private set;
		}

		#endregion
	}
}
